[CMD101] Command Line 超新手入門--筆記


Posted by cmtilo on 2021-04-14

MacOS / Linux Windows 備註
pwd chdir
ls dir
cd cd
cd.. 回到上一層
man help
Q 離開
touch
rm del 刪檔案
_rm-r deltree 資料夾底下的東西都刪除
rmdir rd 刪資料夾
mkdir md 新建資料夾
mv mv 移動檔案
mv ren 改名
cp copy
cp 複製檔案
cp-r 複製資料夾
cat type 看檔案內容
vim edit
grep find 抓取關鍵字
wget 下載檔案(圖片.網頁原始碼),非內建指令
curl 送出request測試API,用get秀出response
curl-I 秀出資訊
ls-al>
echo echo
"123">123.txt 會把原本內容覆蓋為123
"456">>123.txt 會把內容新增在後面
pipe 組合用

vim不直覺大家不知道怎麼出去

  • i INSERT模式,可輸入文字
  • esc 普通模式,可刪除可複製
  • :q 離開出來的方式
  • :wq 寫完後存檔離開

#command line







Related Posts

[Day00]: 七天七夜與Docker坦誠相見

[Day00]: 七天七夜與Docker坦誠相見

[進階 js 09] Closure & Scope Chain

[進階 js 09] Closure & Scope Chain

C# 各種類型轉換

C# 各種類型轉換


Comments